#!/usr/bin/env sh

set -o xtrace

export TRUST_PARAMS=1
export TRIGGER_SCHED=true
#export FULLNODE_API_INFOS=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJyZWFkIiwid3JpdGUiLCJzaWduIiwiYWRtaW4iXX0.aTQmW61J4_fQlSGIzfbOYQSYoNgobHkA-i4IcasKNRo:/ip4/127.0.0.1/tcp/1234/http

export LOTUS_WORKER_PATH=~/.lotusworker_storgae

tag=${TAG:-debug}

#go run -tags=$tag ./cmd/lotus wallet import ~/.genesis-sectors/pre-seal-t01000.key
#go run -tags=$tag ./cmd/lotus-storage-miner run --enable-all-task=false --nosync
go run -tags=$tag ./cmd/lotus-seal-worker run --listen 127.0.0.1:3459 --commit1=false --finalize=false --addpiece=false --precommit1=false --unseal=false  --precommit2=false --commit=false --fetch-max=1
